﻿<?xml version="1.0" encoding="utf-8" ?>
<Root Title="" Url="" xmlns="http://sdc/2009/07/Deployment/1.1/ContentStructure" Action="None">
  <Roles>
    <Role Action="AddOrUpdate" Title="Accountantcy user">
      <BasePermissions>
        <BasePermission>FullMask</BasePermission>
      </BasePermissions>
    </Role>
  </Roles>
  <Webs>
    <Web Title="News" Url="News" Description="Enterprise news" Template="CMSPUBLISHING#0" Lcid="1033"  Action="AddOrUpdate" 
      MasterUrl="/_catalogs/masterpage/nightandday_custom.master" CustomMasterUrl="/_catalogs/masterpage/nightandday_custom.master"
      InheritCustomMaster="false" InheritMaster="false" AspxPageIndexMode="Always">
      <Lists>
        <List Title="Documents" Url="Documents" Action="None">
          <Items>
            <Item Title="ContentEditorWebPart.txt" Action="Replace" Approve="true">
              <File Action="Replace" FileAction="Approve" OverwriteFileTitleWithItemTitle="true" 
                Title="ContentEditorWebPart.txt" Path="Documents\ContentEditorWebPart.txt"/>
            </Item>
          </Items>
        </List>
        <List Title="$Resources:cmscore,PagesListDisplayName;" Url="$Resources:cmscore,List_Pages_UrlName;" Action="AddOrUpdate" EnableContentTypes="true">
          <Items>
            <Item Title="default_custom.aspx" Action="AddOrUpdate">
              <Page Action="Replace" FileAction="Approve" IsDefault="true" Path="Pages\default_custom.aspx"
                RemoveAllWebParts="true">
                <WebParts>
                  <WebPart Action="Replace" ImportXml="WebParts\ContentEditorWebPart.xml" Order="1" Zone="TopColumnZone" 
                    Title="ContentEditorWebPart"></WebPart>                  
                </WebParts>
              </Page>                                
            </Item>
            <Item Title="default.aspx" Action="Delete"></Item>
          </Items>
        </List>
        <List Title="Images" Url="PublishingImages" Action="AddOrUpdate">
          <Folders>
            <Folder Action="AddOrUpdate" Title="Head images">
              <BulkImport IgnoreIfPathNotExists="true" Action="AddOrUpdate" Path="import\images\head"/>
            </Folder>
            <Folder Action="AddOrUpdate" Title="Content images">
              <Folders>
                <Folder Action="AddOrUpdate" Title="News images">
                  <BulkImport IgnoreIfPathNotExists="true" Action="AddOrUpdate" Path="import\images\content\news"/>
                </Folder>
                <Folder Action="AddOrUpdate" Title="Old images">
                  <BulkImport IgnoreIfPathNotExists="true" Action="AddOrUpdate" Path="import\images\content\old"/>
                </Folder>
              </Folders>
            </Folder>
          </Folders>
        </List>
      </Lists>
    </Web>
    <Web Title="Accountancy" Url="Accountancy" Description="Everything connected to enterprise accountancy" Template="STS#0" Action="AddOrUpdate" Lcid="1033"
      InheritCustomMaster="true" InheritMaster="true" AspxPageIndexMode="Always">
      <Lists>
        <List Title="Invoice positions" Url="InvoicePositions" Action="AddOrUpdate" TemplateId="100" PrimaryKeyFields="Title">
          <Items>
            <Item Action="AddOrUpdate" Title="Invoice Position 1">
              <Properties>
                <Property Name="Description" Value="Invoice Position 1 Description"/>
              </Properties>
            </Item>
            <Item Action="AddOrUpdate" Title="Invoice Position 2">
              <Properties>
                <Property Name="Description" Value="Invoice Position 2 Description"/>
              </Properties>
            </Item>
          </Items>
          <ContentTypes RemoveExisting="true">
            <ContentType Action="AddOrUpdate" Id="0x0100B5D946B639AB424A91904BAADD8FFBDB" IdQualifier="Id" />
          </ContentTypes>
        </List>
        <List Title="Invoices" Url="Invoices" Action="AddOrUpdate" TemplateId="100" PrimaryKeyFields="Title" EnableContentTypes="true">
          <Items>
            <Item Action="AddOrUpdate" Title="Invoice 1">
              <Properties>
                <Property Name="Description" Value="Invoice 1 Description"/>
                <Property Name="csdInvoicePositions" Value="Invoice Position 1;Invoice Position 2"/>
              </Properties>
            </Item>
          </Items>
          <Fields>
            <Field Type="Lookup" DisplayName="Invoice positions" Group="ContentStructure Demo" ID="{20BA670D-9C1B-4258-AE87-F0138CD66230}" SourceID="{1B203314-49EE-409F-B783-4EC959CC4966}"
                   StaticName="csdInvoicePositions" Name="csdInvoicePositions" Mult="TRUE" ShowField="Title" List="Invoice positions"
                   Action="AddOrUpdate" AddToExistingContentTypes="true" />
          </Fields>
          <ContentTypes RemoveExisting="true">
            <ContentType Action="AddOrUpdate" Id="0x0100B7D5168FB598984A9B7F5AE3C9B465DB" IdQualifier="Id" />
          </ContentTypes>
        </List>
        <List Title="Customers" Url="Customers" Action="AddOrUpdate" TemplateId="100" PrimaryKeyFields="Title">
          <Fields>
            <Field Type="Lookup" DisplayName="Invoices" Group="ContentStructure Demo" ID="{1B203314-49EE-409F-B783-4EC959CC4966}" SourceID="{1B203314-49EE-409F-B783-4EC959CC4966}" 
                   StaticName="csdCustomerInvoices" Name="csdCustomerInvoices" Mult="TRUE" ShowField="Title" List="Invoices" 
                   Action="AddOrUpdate" AddToExistingContentTypes="true" />
          </Fields>
          <ContentTypes RemoveExisting="true">
            <ContentType Action="AddOrUpdate" Id="0x0106007EE730BF8FD74B42BB85856C87F8BCAE" IdQualifier="Id" />
          </ContentTypes>          
        </List>
      </Lists>
    </Web>
    <Web Title="IT" Url="IT" Description="IT Department" Template="STS#0" Action="AddOrUpdate" Lcid="1033"
         InheritCustomMaster="true" InheritMaster="true" AspxPageIndexMode="Always">
      <Lists>
        <List Action="AddOrUpdate" TemplateId="100" EnableAttachments="true" Title="Extended tasks" Url="ExtendedTasks" PrimaryKeyFields="Title">
          <Items>
            <Item Action="AddOrUpdate" Title="Extended task 1">              
              <Properties>
                <Property Name="Priority" Value="(1) High"/>
                <Property Name="TaskStatus" Value="In Progress"/>                
                <Property Name="Company" Value="SDC"/>
              </Properties>            
            </Item>
          </Items>
          <ContentTypes RemoveExisting="true">
            <ContentType Action="AddOrUpdate" IdQualifier="Id" Id="0x01080072CD360AF831BF4891B48082A5973560"/>
          </ContentTypes>
        </List>
      </Lists>
    </Web>
  </Webs>
  <Lists>
    <List Title="Master Page Gallery" Url="_catalogs/masterpage" Action="None">
      <Items>
        <Item Title="nightandday_custom.master" Action="AddOrUpdate">
          <Properties>
            <Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;" />
          </Properties>
          <File Action="Replace" Path="Pages\nightandday_custom.master" FileAction="Approve" />
        </Item>
      </Items>
    </List>    
  </Lists>
</Root>